package com.hd.assistant.biz.service;

import java.util.List;

import com.alibaba.fastjson.JSONObject;
import com.hd.assistant.biz.service.exception.ServiceException;
import com.hd.assistant.biz.service.query.PaipaiItemSearchQuery;
import com.hd.assistant.dal.dataobject.User;

public interface PaiPaiIsvService {

	public static String USER_INFO_METHOD="/user/getUserInfo.xhtml";
	public static String ITEM_QUERY_METHOD="/item/sellerSearchItemList.xhtml";
	public static String ITEM_DETAIL_METHOD="/item/getItem.xhtml";
	public static String APPSTORE_DETAIL_METHOD="/appstore/getSubscribeList.xhtml";
	
	public static String MODIFY_ITEM_STATE="/item/modifyItemState.xhtml";
	
	public JSONObject loadUserInfo(User user) throws ServiceException;
	public JSONObject loadSellerItems(PaipaiItemSearchQuery query,User user) throws ServiceException;
	public JSONObject loadItemDetail(String itemCode,User user)throws ServiceException;
	
	/**
	 * 批量修改商品的上下架状态
	 * @param items
	 * @param user
	 * @param state IS_FOR_SALE IS_IN_STORE
	 * @return
	 * @throws ServiceException
	 */
	public int modifyItemsStates(List<String> items,User user,String state)throws ServiceException;
}
